/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wsapi.module.user.service;

import com.wsapi.commons.vo.Page;
import com.wsapi.commons.vo.PageList;
import com.wsapi.module.user.dao.module.User;
import java.util.List;

/**
 * 用户管理模块
 *
 * @author yangyan <y.os@qq.com>
 */
public interface UserManagementService {

    /**
     * 分页查询
     *
     * @param page
     * @return
     */
    public PageList<User> findByPage(Page page);

    /**
     * 查询所有
     *
     * @return
     */
    public List<User> findAll();

    /**
     * 添加用户
     *
     * @param user
     */
    public void addUser(User user);

    /**
     * 删除用户
     *
     * @param user
     */
    public void removeUser(User user);

    /**
     * 修改用户
     *
     * @param user
     */
    public void updateUser(User user);
}
